package fr.service.dao;

import java.util.List;

import fr.beans.Client;
import fr.imodele.dao.IModelDao;
import fr.iservice.dao.IServiceDao;

/**
 * @author Caroline Lavaure
 * Project : Caroline aloe vera
 * 9 juil. 2013
 */
public class ServiceDaoClient implements IServiceDao<Client> {

	/* ************************************* */
	/*               PROPERTIES              */
	/* ************************************* */
	
	/**
	 * the field IModelDao<Client>.
	 */
	IModelDao<Client> iModelDaoClient;
	
	/* ************************************* */
	/*               METHODS                 */
	/* ************************************* */
	
	@Override
	public final boolean save(final Client pClient) {
		// TODO Auto-generated method stub
		return iModelDaoClient.save(pClient);
	}

	@Override
	public final boolean update(final Client pClient) {
		// TODO Auto-generated method stub
		return iModelDaoClient.update(pClient);
	}

	@Override
	public final boolean saveOrUpdate(final Client pClient) {
		// TODO Auto-generated method stub
		return iModelDaoClient.saveOrUpdate(pClient);
	}

	@Override
	public final boolean delete(final int pId) {
		// TODO Auto-generated method stub
		return iModelDaoClient.delete(pId);
	}

	
	@Override
	public final Client read(final int pId) {
		// TODO Auto-generated method stub
		return iModelDaoClient.read(pId);
	}

	@Override
	public final List<Client> lister() {
		// TODO Auto-generated method stub
		return iModelDaoClient.lister();
	}

		
	/* ************************************* */
	/*         GETTERS & SETTERS             */
	/* ************************************* */

	/**
	 * @return the iModelDaoClient
	 */
	public final IModelDao<Client> getiModelDaoClient() {
		return iModelDaoClient;
	}

	/**
	 * @param pIModelDaoClient .
	 */
	public final void setiModelDaoClient(final IModelDao<Client> pIModelDaoClient) {
		this.iModelDaoClient = pIModelDaoClient;
	}
	
	
}
